package cn.iocoder.yudao.module.mzt.controller.admin.articleinteraction.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;
import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;

@Schema(description = "管理后台 - 文章交互记录 Response VO")
@Data
@ExcelIgnoreUnannotated
public class ArticleInteractionRespVO {

    @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "15864")
    @ExcelProperty("ID")
    private Long id;

    @Schema(description = "文章ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "16117")
    @ExcelProperty("文章ID")
    private Long articleId;

    @Schema(description = "文章")
    @ExcelProperty("文章")
    private String articleTitle;

    @Schema(description = "分类", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
    @ExcelProperty("分类")
    private String categoryName;

    @Schema(description = "类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty(value = "类型", converter = DictConvert.class)
    @DictFormat("mzt_article_interaction_type") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private String type;

    @Schema(description = "IP地址", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("IP地址")
    private String ip;

    @Schema(description = "浏览器信息")
    @ExcelProperty("浏览器信息")
    private String userAgent;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}